/**
 * 日常考核-事件考核-事件审核
 */

import request from '@/router/axios'

// 查询 事件审核 列表
export function eventExamineList(query, type) {
  //提
  return request({
    url: `/appr-event/rckhsjkh/sjshpage/${type}`,// /appr-contract/zxgzgzcj/page
    method: 'get',
    params: query
  })
}

// 领导同意
export function leaderAudition(ids) {
  return request({
    url: `/appr-event/rckhsjkh/sub/${ids}`, // /appr-contract/zxgzpro/process/audit/${ids}/${pass}
    method: 'put',
  })
}

// 领导驳回
export function leaderAuditionRefuse(ids) {
  return request({
    url: `/appr-event/rckhsjkh/subBh/${ids}`, // /appr-contract/zxgzpro/process/audit/${ids}/${pass}
    method: 'put',
  })
}

//提交审核给谁
export function showUserName(id) {
  return request({
    url: `/appr-event/rckhsjtask/getNextTaskUser/${id}`,
    method: 'get',
  })
}

//驳回给谁
export function showRefuseUserName(id) {
  return request({
    url: `/appr-event/rckhsjtask/getBhTaskUser/${id} `,
    method: 'get',
  })
}


// 事件审核某条数据详情查询
export function dataDetail(id) {
  return request({
    url:`/appr-event/rckhsjkh/${id}` ,//`/appr-contract//zxgzgzcj/${id}  `,
    method: 'get',
  })
}


